reftests: Add test for GtkImage use-fallback property
authorBastien Nocera <hadess@hadess.net>
Thu, 8 Oct 2015 11:36:52 +0000 (13:36 +0200)
committerBastien Nocera <hadess@hadess.net>
Thu, 8 Oct 2015 12:05:35 +0000 (14:05 +0200)
Fallback seems to be working in the GtkIconTheme test suite, but fails
in GtkImage itself.

This is a test for a bug in the Bluetooth settings. An icon named
"phone-apple-iphone" should fallback to "phone" if the
gnome-icon-theme-extras package isn't installed.

testsuite/reftests/Makefile.am
testsuite/reftests/gtk-image.ref.ui [new file with mode: 0644]
testsuite/reftests/gtk-image.ui [new file with mode: 0644]

index 67a918fabe795d1a4cb6ac2dc8933adb7f98dc97..45f35fd4ac471cfc94bfe76d130d5b55a4e39ad6 100644 (file)
@@ -265,6 +265,8 @@ testdata = \
        gtk-icontheme-sizing.css \
        gtk-icontheme-sizing.ref.ui \
        gtk-icontheme-sizing.ui \
+       gtk-image.ui \
+       gtk-image.ref.ui \
        icon-shadow-no-transform.css \
        icon-shadow-no-transform.ref.ui \
        icon-shadow-no-transform.ui \
diff --git a/testsuite/reftests/gtk-image.ref.ui b/testsuite/reftests/gtk-image.ref.ui
new file mode 100644 (file)
index 0000000..398dc71
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.19.0 -->
+<interface>
+  <requires lib="gtk+" version="3.10"/>
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkImage" id="image1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="icon_name">edit-delete</property>
+        <property name="use_fallback">True</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/gtk-image.ui b/testsuite/reftests/gtk-image.ui
new file mode 100644 (file)
index 0000000..442664c
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.19.0 -->
+<interface>
+  <requires lib="gtk+" version="3.10"/>
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkImage" id="image1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="icon_name">edit-delete-lolwtfbbq</property>
+        <property name="use_fallback">True</property>
+      </object>
+    </child>
+  </object>
+</interface>